$(function() {
	$("#left").load("../common/gover-left.html");
	var preCode = parseQueryString().preCode;
	my_vue = new Vue({
		el: '#vue_info',
		data: {
			apply:{
							commitTimeLimit:"",
							area:"",
							preCode:"",
							cailiaoWay:"",
							cailiaoReturnWay:"",
							legalTimeLimit:"",
							repoName:"",
							expressCode:"",
							repoCode:"",
							dept:"",
							address:'',
							createAt:'',
							state:''
						}
		},
		methods: {
			scanner: function() {
				this.$http.get(gover.scanner, {
					preCode:preCode
				}).then(function(result) {
					doMask()
					console.log(toJson(result.data));
					if(result.data.success) {
						unMask();
						this.apply = result.data.data;
					} else {
						unMask();
						console.log(result.data.message);
						showRedMsg("message", "服务器正忙,请稍候重试");
					}

				}, function() {
					unMask();
					showRedMsg("message", "服务器正忙,请稍候重试");
					console.log('保存接口失败:' + toJson(result));
					

				})
			},
			goBack: function() {
				window.location = "scannerIndex.html"
			},
		},
		ready: function() {
			//初始化获得总页面数和列表数据
			this.scanner();	
			var url="../up/index.html";
			windowOpen(url);
		}
	});
})